<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/core/common/top.jsp"%>

<script language="javascript">
/* $(document).ready(function(){
	$.formValidator.initConfig({formid:"form0",tidymode:true,onerror:function(msg) {showMessage(msg);}});
	$("#q_password").formValidator().inputValidator({min:1,onerror:"必须输入正确的订单密码！"});

}); */

function doConfirm(){
	var val=document.forms[0].q_password.value;
	//alert(val);
	if(val==null || val==''){
		showMessage('标记为 *&nbsp;&nbsp;的项必须输入内容！');
		return false;
	}
	
	if(confirm("用密码查询到订单后，该订单将自动被置\r\n为'已确认'状态，确定的要查询？")){
		this.document.forms[0].submit();
		return true;
	}else{
		return false;
	}

}

</script>
<body style="overflow-x: hidden; overflow-y: auto;">
<div id="mytest3"></div>
<table width="98%" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<%@include file="/WEB-INF/core/common/message.jsp"%>
	<tr>
		<td>
		<table border="0" align="center" cellpadding="0" cellspacing="0">
			<td width="8" height="27"><img
				src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td>
			<td width="99%" align="left"
				background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;
				<img src="${ctx}/core/images/icon_04.gif" />&nbsp;确认订单</td>
			<td width="8"><img src="${ctx}/core/images/button_07.gif"
				width="8" height="27" /></td>
		</table>
		</td>
	</tr>

	<tr>
		<td colspan="3" class="biaoge">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<form id="form0" name="mainForm" method="post"	action="${ctx}/platformManage/orderManage.action">
			<input name="act" type="hidden" value="addSubmit" />
			<tr>
				<td height="15"></td>
			</tr>

			<tr>
				<!-- 查询条件 -->
				<td class="tabulation" colspan="3">
				<div style="position: relative">
				<div id="menu1"><img src="${ctx}/core/images/icon_13.gif">
				<s:text	name="info.queryCondition" /></div>

				<table width="100%" border="0" cellpadding="0" cellspacing="1"	bordercolor="#FFFFFF">

					<tr align="left">
						<td height="30" width="3%" align="center" bgcolor="#DDE4EA" nowrap="nowrap"><font color="red">订单密码 *</font>&nbsp;&nbsp;
						</td>
						<td width="30%" bgcolor="#DDE4EA">
							<input	id="q_password" name="q_password" value="<s:property value='%{q_password}'/>"	class="textbox_css" style="width:220px" />
						</td>
					</tr>


					<tr>
						<td height="25" colspan="6" align="right" bgcolor="#DDE4EA">
						<input type="button" onclick="doConfirm();" class="btn" ="queryButton" name="query" value="<s:text name='button.query' />" />
						</td>
					</tr>

				</table>
				</div>
				</td>
				<!-- 查询条件结束 -->

			</tr>
			<tr>
				<td height="5"></td>
			</tr>
			<tr>
				<td height="10" background="${ctx}/core/images/line5.gif"></td>
			</tr>
			<tr>
				<td height="5"></td>
			</tr>

		</table>



		</td>
	</tr>

	<tr>
		<td colspan="3" class="biaoge" valign="top">
		<table width="100%" border="0" cellpadding="0" cellspacing="1"	bordercolor="#FFFFFF">
		<s:if test="pageState=='view'">
			<tr align="left">
				<td width="10%" height="25" bgcolor="#DDE4EA" nowrap align="center">订单号</td>
				<td nowrap width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<s:property value="order.orderNum" />					
				</td>

				<td width="10%" nowrap="nowrap" bgcolor="#DDE4EA" align="center">联系电话</td>
				<td width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<s:property value="order.userPhone" />
				</td>
			</tr>
			
			
			<tr align="left">
				<td width="10%" height="25" bgcolor="#DDE4EA" nowrap align="center">订单内容</td>
				<td nowrap width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<s:property value="order.orderName" />					
				</td>

				<td width="10%" nowrap="nowrap" bgcolor="#DDE4EA" align="center">房间数量</td>
				<td width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<s:property value="order.units" />
				</td>
			</tr>
			
			<tr align="left">
				<td width="10%" height="25" bgcolor="#DDE4EA" nowrap align="center">使用日期</td>
				<td nowrap width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<s:date name="order.startTime" format="yyyy-MM-dd"  />			
				</td>

				<td width="10%" nowrap="nowrap" bgcolor="#DDE4EA" align="center">使用时段</td>
				<td width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<exts:select name="order.timeSegment" value="%{order.timeSegment}"  code="TIME_SEGMENT" ></exts:select>
				</td>
			</tr>
			
			<tr align="left">
				<td width="10%" height="25" bgcolor="#DDE4EA" nowrap align="center">下单时间</td>
				<td nowrap width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<s:date name="order.recordTime" format="yyyy-MM-dd HH:mm:ss"  />			
				</td>

				<td width="10%" nowrap="nowrap" bgcolor="#DDE4EA" align="center">分配时间</td>
				<td width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<s:date name="order.allocateTime" format="yyyy-MM-dd HH:mm:ss"  />
				</td>
			</tr>
			
			<tr align="left">
				<td width="10%" height="25" bgcolor="#DDE4EA" nowrap align="center"><font color="red">分配房号</font></td>
				<td nowrap width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<s:property value="order.allocateRoom" />					
				</td>

				<td width="10%" nowrap="nowrap" bgcolor="#DDE4EA" align="center">分配人</td>
				<td width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<s:property value="order.allocateOpt" />
				</td>
			</tr>
			
			<tr align="left">
				<td width="10%" height="25" bgcolor="#DDE4EA" nowrap align="center"><font color="red">订单总价</font></td>
				<td nowrap width="40%" align="left" bgcolor="#DDE4EA">&nbsp;
					<s:property value="order.price" /> 元					
				</td>
				<td width="10%" nowrap="nowrap" bgcolor="#DDE4EA" align="center">状&nbsp;&nbsp;&nbsp;&nbsp;态</td>
				<td width="40%" bgcolor="#DDE4EA" align="left">&nbsp;
					<exts:select name="order.status" value="%{order.status}"  code="ORDER_STATUS" ></exts:select>
				</td>
				
			</tr>
			
	    	
			
			<tr>
				<td height="10" colspan="4" background="../core/images/line5.gif">&nbsp;</td>
			</tr>
			<tr>
				<td height="25" colspan="4" align="center">
				    <input id="returnButton" type="button" class="btn"	value="<s:text name='button.return'/>" onclick="location='platformManage/orderManage.action?act=addInput';"/>
				</td>
			</tr>
		</s:if>	
		</table>
		</td>
	</tr>

	</form>
</table>
</body>
